﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="RC_BackManageOld.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.RC_BackManageOld" %>
<%@ Register src="../Controls/user.ascx" tagname="user" tagprefix="uc2" %>

<asp:Content 
    ID="Content1" 
    runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    
       <script type="text/javascript" src="../../Scripts/DatePicker.js">
        
    </script>


   <script type="text/javascript">
       function openProjectDetails(id) {
           radopen("ES_MoveRequestJobsite.aspx?id=" + id, "ProjectDtls");
           return false;

       }
   </script>
   
     <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 
   
   
   
       <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">        
            <script type="text/javascript">

                function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }
 
            </script>
        
    </telerik:RadCodeBlock>
  
            
                     <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
    <telerik:RadWindow 
        id="ProjectDtls" 
        runat="server"
        showcontentduringload="false"
        VisibleStatusbar="false"
        title=""
        width="800px"
        Height="600px"        
        Modal="true"
        behaviors="Close">
    </telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
            
          
          
          
          
          
            
             
            
            
            



                      <table>
            
   
            
            <tr>
            <td width="280" valign = "top">
                <uc2:user ID="user1" runat="server" />
            </td>
            <td width="20" >
            </td>
            <td>
            <div class="moduleDivSlim700">
                    <div class="moduleDivBottom700">
                         <asp:Panel ID="PanelFilter" runat="server" Width="700px" ScrollBars="Auto">
                            <table align = "center" width = "650px">
                                    <tr>
                                        <td align="right" >
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                        
                                       <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                        </asp:Panel>
                    </div>
                </div>
            </td>
          </tr>
          
                   
          </table>



    
            
            
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="btnSearch">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="btnShowAll">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="rcb1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="rcb1" /> 
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            
            
            
            
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
            
        <div class="moduleDivSlim1000">
        <div class="moduleDivBottom1000">
        <table width = "100%" class ="tableHeader">
            <tr>
            <td>
            
            
            
            
          บัญชีรายละเอียด &nbsp;<asp:Label ID="lblCmdName" runat="server" 
                                    Text='<%# DataBinder.Eval( Container, "DataItem.Employee.Sequence"  ) %>' 
                                    Visible="True"></asp:Label>
                                    
                                    &nbsp;แนบท้ายคำสั่งที่ &nbsp;
                                    
                                    <asp:Label ID="lblRefNo" runat="server" 
                                    Text='<%# DataBinder.Eval( Container, "DataItem.Employee.Sequence"  ) %>' 
                                    Visible="True"></asp:Label>&nbsp;ลงวันที่ &nbsp; 
                                    
                                    
                                    <asp:Label ID="lblAppDate" runat="server" 
                                    Text='<%# DataBinder.Eval( Container, "DataItem.Employee.Sequence"  ) %>' 
                                    Visible="True"></asp:Label>
                                    
                            <asp:Label ID="lblEmpSeq" runat="server" 
                                    Text='<%# DataBinder.Eval( Container, "DataItem.Employee.Sequence"  ) %>' 
                                    Visible="False"></asp:Label>
                            <asp:Label ID="lblSta" runat="server" Visible="False"></asp:Label>
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            
                            </td>
            </tr>
            </table>
            <table width ="100%" >
        <tr>
        <td align="center">
            <asp:Panel ID="Panel5" runat="server" Height="400px" Width = "100%" ScrollBars ="Auto">
                    <telerik:RadGrid 
                            ID="RadGrid1" 
                            runat="server" 
                            AllowAutomaticDeletes="True" 
                            AllowFilteringByColumn="True" 
                            AllowMultiRowEdit="True" 
                            AllowMultiRowSelection="True" 
                            AllowPaging="True" 
                            AllowSorting="True" 
                            AutoGenerateColumns="False" 
                            EnableAJAX="True" 
                            EnableAJAXLoadingTemplate="True" 
                            GridLines="None" 
                            OnItemCommand="RadGrid1_ItemCommand" 
                            Skin="Outlook" 
                            Width="100%" onitemcreated="RadGrid1_ItemCreated" 
                onitemdatabound="RadGrid1_ItemDataBound" 
                        onneeddatasource="RadGrid1_NeedDataSource">
                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                                ClientDataKeyNames="cmd_dtls_seq" 
                                CommandItemDisplay="Top" 
                                DataKeyNames="cmd_dtls_seq" 
                                InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                                NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                                <CommandItemTemplate>
                                 
                                 
                                 

                                 
                                 
                                    <table width="100%">
                                        <tr>
                                            <td align=left  >
                                                <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                                    CommandName="InitInsert" 
                                                    
                                                    
                                                    Visible="<%# !RadGrid1.MasterTableView.IsItemInserted && RadGrid1.EditIndexes.Count <= 0 %>">
                                        <img style="border:0px;vertical-align:middle;" alt="" 
                                        src="../Images/Buttons/AddRecord.gif" /> เพิ่มรายชื่อบุคลากร</asp:LinkButton>
                                               </td>
                                            <td align="right">
                                                
                                            </td>
                                        </tr>
                                    </table>
                                    
                                    
                       
                                    
                                    
                                </CommandItemTemplate>
                                <RowIndicatorColumn>
                                    <HeaderStyle Width="15px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn>
                                    <HeaderStyle Width="15px" />
                                </ExpandCollapseColumn>                                
                                <Columns>
                        
                        
                                <telerik:GridEditCommandColumn 
                                        EditText = "คลิกเพื่อแก้ไขรายการ"
                                        ButtonType="ImageButton">
                                        <HeaderStyle HorizontalAlign="Center" Width="15px" />
                                        <ItemStyle HorizontalAlign="Center" Width="15px" />
                                    </telerik:GridEditCommandColumn>
                                  
                                  
                                  
                                    <telerik:GridButtonColumn 
                                        ButtonType="ImageButton" 
                                        CommandName="Delete" 
                                        ConfirmDialogType="RadWindow" 
                                        ConfirmText="ลบข้อมูลที่เลือก?" 
                                        ItemStyle-Width="15" 
                                        Text="คลิกเพื่อลบรายการ" 
                                        UniqueName="column1">
                                        <HeaderStyle HorizontalAlign="Center" Width="15px" />
                                        <ItemStyle HorizontalAlign="Center" Width="15px"/>
                                    </telerik:GridButtonColumn>
                               
                                    <telerik:GridBoundColumn 
                                        DataField="Sequence" 
                                         
                                        Display="False" 
                                        HeaderText="Sequence" 
                                        ReadOnly="True" 
                                        UniqueName="Sequence" 
                                        Visible="False">
                                    </telerik:GridBoundColumn>
                                    
                                    
                                
                                    <telerik:GridTemplateColumn
                                        DataField="full_name" 
                                        HeaderText = "ชื่อ - สกุล"
                                        FilterControlWidth = "100%"
                                        AutoPostBackOnFilter="true" 
                                        CurrentFilterFunction="Contains" 
                                        ShowFilterIcon="False">
                                    <ItemTemplate>
                                    <%# Eval("full_name")%>                        
                                             </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                    </telerik:GridTemplateColumn>
                                
                                
                                  <telerik:GridBoundColumn 
                                        DataField="new_pos_name" 
                                        FilterControlWidth = "100%"
                                        AutoPostBackOnFilter ="true"
                                        ShowFilterIcon ="false"
                                        HeaderText="ตำแหน่ง" 
                                        UniqueName="new_pos_name">
                                       
                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                     </telerik:GridBoundColumn> 
                                     
                                     
                                     
                                    <telerik:GridTemplateColumn
                                        DataField="class_name" 
                                        FilterControlWidth = "100%"
                                        AutoPostBackOnFilter ="true"
                                        ShowFilterIcon ="false"
                                        HeaderText="ระดับ" 
                                        UniqueName="class_name">
                                               <ItemTemplate>
                                    <%# Eval("class_name")%> 
                                    </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                    </telerik:GridTemplateColumn>
                                 
                                 
                                 
                                    <telerik:GridTemplateColumn
                                        DataField="new_job_site_name" 
                                        FilterControlWidth = "100%"
                                        AutoPostBackOnFilter ="true"
                                        ShowFilterIcon ="false"
                                        HeaderText="สังกัด" 
                                        UniqueName="new_job_site_name">
                                                       <ItemTemplate>
                                    <%# Eval("new_job_site_name")%> 
                                    </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                    </telerik:GridTemplateColumn>
                            
                               
                               <telerik:GridBoundColumn 
                                  
                                        DataField="new_salary" 
                                        FilterControlWidth = "100%"
                                        AutoPostBackOnFilter ="true"
                                        ShowFilterIcon ="false"
                                        HeaderText="เงินเดือน" 
                                        UniqueName="new_salary"
                                        DataFormatString="{0:#,##0.00}"
                                    
                                        >
                                  </telerik:GridBoundColumn>
                                                                     
                           
                                    
                                    
                                    
                                    <telerik:GridTemplateColumn 
                                        DataField="remarks" 
                                        FilterControlWidth = "100%"
                                        AutoPostBackOnFilter ="true"
                                        ShowFilterIcon ="false"
                                        HeaderText="หมายเหตุ" 
                                        UniqueName="remarks">
                                         <ItemTemplate>
                                    <%# Eval("remarks")%> 
                                    </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                                     
                           
                                    </telerik:GridTemplateColumn>
                                    
                                    
                                  
                                    
                                    
                                    
                                </Columns>
                                
                                
                                <EditFormSettings                                     
                                    EditFormType="WebUserControl" 
                                    UserControlName="../UserControls/RC_BackManageOld.ascx">
                                    <EditColumn UniqueName="EditCommandColumn1"></EditColumn>
                                </EditFormSettings>
                                
                                
                                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                            </MasterTableView>
                            <ClientSettings AllowColumnHide="True" 
                                AllowColumnsReorder="True" 
                                EnableRowHoverStyle="True" 
                                ReorderColumnsOnClient="True">
                                <Selecting AllowRowSelect="True" 
                                EnableDragToSelectRows="true" />
                                </ClientSettings>
                        </telerik:RadGrid>
                        
                        
                                      
                        
                        
            </asp:Panel>
            </td>
</tr>
</table>
            </div> 
                                    </div>
        <br />


                        
</asp:Content>